package com.qijian.maindata.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 质检详情对象 sd_quality_detail
 *
 * @author qijian
 * @date 2024-02-27
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("sd_quality_detail")
public class SdQualityDetail extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "主键id")
    private Long id;

    @Excel(name = "质量表主表id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "质量表主表id")
    private Long sdQualityResultId;

    @Excel(name = "质量标准id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "质量标准id")
    private Long examineId;

    @Excel(name = "质检结果")
    @ApiModelProperty(value = "质检结果")
    private Boolean isQualified;

    @Excel(name = "产品实际值")
    @ApiModelProperty(value = "产品实际值")
    private String actualValue;

    @Excel(name = "质检单个值")
    @ApiModelProperty(value = "质检单个值")
    private String examineSingleValue;

    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

    @Excel(name = "是否是入库质检")
    @ApiModelProperty(value = "是否是入库质检")
    private Boolean isInboundExamine;

    @Excel(name = "首件检结果")
    @ApiModelProperty(value = "首件检结果")
    private Boolean firstInspection;

    @Excel(name = "检测值，上下限")
    @ApiModelProperty(value = "检测值，上下限")
    private String examineValue;

    @Excel(name = "质检值顺序")
    @ApiModelProperty(value = "质检值顺序")
    private Integer examineIndex;

    @Excel(name = "检测部位")
    @ApiModelProperty(value = "检测部位")
    private String dictName;

    @Excel(name = "将是否合格放进去")
    @ApiModelProperty(value = "将是否合格放进去")
    private String actualDetailValue;

}
